﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Newtonsoft.Json;

namespace HTSwitchServerNamespace.DataMocks
{
    class GoogleGeoCode : DataMockMgr
    {
        [JsonProperty("results")]
        public List<Results> results { get; set; }

        [JsonProperty("status")]
        public string status { get; set; }
    }

    public class Results
    {
        [JsonProperty("address_components")]
        public List<Address_components> address_components { get; set; }

        [JsonProperty("formated_address")]
        public string formated_address { get; set; }

        [JsonProperty("geometry")]
        public Geometry geometry { get; set; }

        [JsonProperty("types")]
        public string[] types { get; set; }
    }
    public class Address_components
    {
        [JsonProperty("long_name")]
        public string long_name { get; set; }

        [JsonProperty("short_name")]
        public string short_name { get; set; }

        [JsonProperty("types")]
        public string[] types { get; set; }
    }

    public class Geometry     
    {
        [JsonProperty("bounds")]
        public Bounds bounds { get; set; }

        [JsonProperty("location")]
        public Location location { get; set; }

        [JsonProperty("location_type")]
        public string location_type { get; set; }

        [JsonProperty("viewport")]
        public Viewport viewport { get; set; }

    }
    public class Bounds
    {
        [JsonProperty("northeast")]
        public Northeast northeast{ get; set; }
        
        [JsonProperty("southwest")]
        public Southwest southwest{ get; set; }
    }
    public class Northeast
    {
        [JsonProperty("lat")]
        public string lat{ get; set; }

        [JsonProperty("lng")]
        public string lng{ get; set; }
    }
    public class Southwest
    {
        [JsonProperty("lat")]
        public string lat { get; set; }
        
        [JsonProperty("lng")]
        public string lng{ get; set; }

    }

    public class Location
    {
        [JsonProperty("lat")]
        public string lat{ get; set; }
        
        [JsonProperty("lng")]
        public string lng{ get; set; }

    }

    public class Viewport
    {
        [JsonProperty("northeast")]
        public Northeast northeast{ get; set; }
        
        [JsonProperty("southwest")]
        public Southwest southwest{ get; set; }
    }
    

}
